package com.itheima.pojo;

import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

@Data
@Table(name = "t_comment")
public class Comment {

  @Id
  private String uid;
  private String userUid;
  private String toUid;
  private String toUserUid;
  private String content;
  private String blogUid;
  private Integer status;
  private Date createTime;
  private Date updateTime;
  private String source;
  private Integer type;
  private String firstCommentUid;

  @Transient
  private Integer currentPage;
  @Transient
  private Integer pageSize;
  @Transient
  private String keyword;
  @Transient
  private User user;
  @Transient
  private String userName;
  @Transient
  private String sourceName;
}
